[XEN] Fix assert in typed p2m code
authorTim Deegan <Tim.Deegan@xensource.com>
Wed, 12 Sep 2007 08:58:16 +0000 (09:58 +0100)
committerTim Deegan <Tim.Deegan@xensource.com>
Wed, 12 Sep 2007 08:58:16 +0000 (09:58 +0100)
as spotted by GCC-4's enthusiastic warnings.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen/include/asm-x86/p2m.h

index 0febce28f403f0ae42e6ab79b33384855dd1cbcc..ff00bbd4faac84f965428093023ab82f41435923 100644 (file)
@@ -119,7 +119,7 @@ static inline mfn_t gfn_to_mfn_current(unsigned long gfn, p2m_type_t *t)
 
         if ( ret == 0 ) {
             p2mt = p2m_flags_to_type(l1e_get_flags(l1e));
-            ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(*t));
+            ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(p2mt));
             if ( p2m_is_valid(p2mt) )
                 mfn = _mfn(l1e_get_pfn(l1e));
             else